package site.kitcheng.springboottest.api.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import site.kitcheng.springboottest.api.controller.dto.UserDto;
import site.kitcheng.springboottest.app.service.ISysMenuService;
import site.kitcheng.springboottest.domain.SysMenu;
import site.kitcheng.springboottest.infra.utils.Result;

import java.util.List;


/**
 * <p>
 * 菜单权限表 前端控制器
 * </p>
 *
 * @author author
 * @since 2025-01-22
 */
@RestController
@RequestMapping("/sys-menu")
public class SysMenuController {

    @Autowired
    private ISysMenuService sysMenuService;

    public Result<List<SysMenu>> getUserMenu() {

       List<SysMenu> list= sysMenuService.getUserMenu(new UserDto());

        return Result.success(list);
    }

}
